import request from "./request.js"

// 这里创建api，在文件中引入
//教育
//获取用户信息
// export const userInformation = p => request.postRequest('/api/user/userinfo',p)
// // 轮播图
// export const swiperBox = p => request.getRequest('/api/index/banner',p)
// 反馈

//登录

export const login = p => request.postRequest('/api/Login/login',p)
//修改账户信息 
export const profile = p => request.postRequest('/api/Login/profile',p)
// 活动信息列表 
export const index = p => request.getRequest('/api/Activity/index',p);
//区域代理
//区域代理列表
export const regionList = p => request.getRequest('/api/Store/menList',p);
//区域经理->经销商详情
export const regionDistributorDetails = p => request.getRequest('/api/Store/menDetails',p);
//区域经理正常和禁用
export const regionChangeStatus = p =>request.postRequest('/api/Store/Disable',p)
//区域经理->经销商添加和编辑
export const regionAddEdit = p =>request.postRequest('/api/Store/addEnit',p);
//删除经销商
export const regionDelete = p =>request.postRequest('/api/Store/del',p);
//区域经理门店列表
export const regionStoreList = p =>request.getRequest('/api/Store/store',p);
//区域经理活动列表
export const regionActivity = p => request.getRequest('/api/Activity/index',p);
//区域经理活动详情
export const regionActivityDetails = p => request.getRequest('/api/Activity/details',p);
//区域经理活动详情报名情况
export const regionSignUp = p => request.getRequest('/api/Activity/situation',p);
//区域经理上限数据
export const regionUpperJ =p=> request.postRequest('/api/insurance/statistics',p);
//区域经理报名活动审核
export const regionToExamine =p=> request.getRequest('/api/Activity/examineList',p);
//区域经理报名活动审核详情
export const regionToExamineDetails =p=> request.getRequest('/api/Activity/examineDetails',p);
//区域经理审核活动审核

export const regionexamineBox =p=> request.postRequest('/api/Activity/examine',p);
//区域经理数据查看
export const regionexaminecchakan =p=> request.getRequest('/api/Store/agentSee',p);
//区域经理销售数据
export const regionexaminecsale =p=> request.getRequest('/api/Fill/filList',p);
//微信登录
export const wxLogins =p=>request.postRequest('/api/Login/wechat_login',p);
// 活动信息详情  
export const details = p => request.getRequest('/api/Activity/details',p)
// 经销商--数据填报  
export const fillIn = p => request.postRequest('/api/Fill/fillIn',p)
// 数据管理列表 
export const filList = p => request.getRequest('/api/Fill/filList',p)
// 数据管理详情  
export const Filldetails = p => request.getRequest('/api/Fill/details',p)
// 经销商--数据统计接口  
export const Statistics = p => request.getRequest('/api/Fill/Statistics',p)
// 经销商--活动申报及编辑 
export const declaration = p => request.postRequest('/api/Activity/declaration',p)
// 区域代理及经销商--活动审核列表
export const examineList = p => request.getRequest('/api/Activity/examineList',p)
// 区域代理--活动审核详情
export const examineDetails = p => request.getRequest('/api/Activity/examineDetails',p)
// 区域代理--活动审核 
export const examine = p => request.postRequest('/api/Activity/examine',p)
// 活动反馈接口 
export const feedback = p => request.postRequest('/api/Activity/feedback',p)
// 图片上传  
export const upload = p => request.postRequest('/api/Common/upload',p)
// 区域代理-查看报名情况  
export const situation = p => request.getRequest('/api/Activity/situation',p)
// 区域代理-经销商列表
export const menList = p => request.getRequest('/api/Store/menList',p)
// 区域代理-经销商添加编辑
export const addEnit = p => request.postRequest('/api/Store/addEnit',p)
// 区域经理-经销商详情
export const menDetails = p => request.getRequest('/api/Store/menDetails',p)
// 区域经理-经销商禁用启用
export const Disable = p => request.postRequest('/api/Store/Disable',p)
// 区域经理-经销商删除
export const del = p => request.postRequest('/api/Store/del',p)
// 微信小程序绑定 
export const wechatbind = p => request.postRequest('/api/user/wechat_bind',p);
//我的页面--反馈数据
export const fanguiList = p => request.getRequest('/api/Activity/examineList',p);
//我的页面--反馈数据详情
export const fanguiInfo = p => request.getRequest('/api/Activity/examineDetails',p);
//我的页面--活动反馈
export const fankui = p => request.postRequest('/api/Activity/feedback',p);
//我的页面--活动反馈--上传图片
export const uploadImg = p => request.postRequest('/api/Common/upload',p);
//我的页面--修改用户信息
export const editUser = p => request.postRequest('/api/Login/profile',p);
//我的页面--修改用户信息
export const shangxian1 = p => request.postRequest('/api/insurance/statisticsTwo',p);
//上险数据--整体市场销量趋势
export const trendRequest = p =>request.postRequest('/api/insurance/statisticsTwo',p);
//车型类别市场容量及增长分析
export const growth = p =>request.postRequest('/api/insurance/statisticsThree',p);
//车型销量及同比
export const YearONYea = p => request.postRequest('/api/insurance/car_type_market',p);
//活动列表接口
export const acttList = p =>request.getRequest('/api/Fill/activity',p);
//区域店铺查看
export const shopSees = p =>request.postRequest('/api/Fill/shop_filList',p);
//  新区域代理活动数据
export const agentSees = p =>request.postRequest('/api/Store/agentSees',p);
export const specific = p =>request.postRequest('/api/Store/specific',p);

